package com.qd.panda.gas.station.shell.req.last;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.qd.panda.gas.station.shell.req.sc.BaseReq;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @author sjk
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class ShellCalculateReqDTO extends BaseReq {
    /**
     * 站点id
     */
    @JsonProperty("station_id")
    private Integer stationId;
    /**
     * 油号
     */
    @JsonProperty("octane_number")
    private Integer octaneNumber;
    /**
     * 加油金额
     */
    @JsonProperty("total_amount")
    private BigDecimal totalAmount;

    @Override
    public void freeData(){
        this.stationId = null;
        this.octaneNumber = null;
        this.totalAmount = null;
    }
}
